from celery import shared_task
from utils.sendmsg import send_message
import logging
logger = logging.getLogger("django")
@shared_task
def add(x, y):
    return x + y

@shared_task
def send(mobile,code):
    try:
        return send_message(mobile,code)
    except Exception as e:
        logger.error(f"发送信息失败：{e}")











